package com.xiao.newfarm.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author xiaoxiaoping
 * @Date 2020/5/31 17:02
 * @Version 1.0
 */
@Configuration
@MapperScan("com.xiao.newfarm.mapper*")
public class MybatisPlustConfig {
	/*
	 * 分页插件，自动识别数据库类型
	 * 多租户，请参考官网【插件扩展】
	 */
	@Bean
	public PaginationInterceptor paginationInterceptor() {
		return new PaginationInterceptor();
	}
}
